package com.gxh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分类实体
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("category")

public class Category implements Serializable {

    private static final long serialVersionUID = 1L;
    //分类id
    private Long id;
    //分类名称
    private  String name;
    //分类排序
    private  Integer sort;
    //创建时间
    private LocalDateTime createTime;
    //更新时间
    private  LocalDateTime updateTime;
    //创建人
    private  Long createUser;
    //更新人
    private  Long updateUser ;
    @TableField(exist = false)
    private Long machineCount; // 分类下设备数量
}
